package com.yide.myworld.constants.enums;


import com.yide.myworld.api_result.IEnumCode;

public enum UserEnum implements IEnumCode {

    /**
     * 用户注册还是登录时标识
     */
    REGISTER("001","注册"),
    SIGN_IN("002","登录"),


    /**
     * 性别
     */
    MALE("002","男"),
    FEMALE("001","女"),


    /**
     * 特权用户：001不是特权用户；002是特权用户
     */
    IS_PRIVILEGED_USER("001","非特权用户"),
    NOT_PRIVILEGED_USER("002","特权用户"),


    /**
     * 账号已冻结
     */
    ACCOUNT_FREEZING("002","账号已冻结"),


    /**
     * 账号已注销
     */
    UNREGISTERED("001","未注销"),
    LOGGED_OUT("002","账号已注销"),


    /**
     * 登录类型
     */
    YOUMENG_LOGIN("001","友盟登录"),
    SMS_VERIFICATION_CODE_LOGIN("002","短信验证码登录"),
    APPLE_ID_LOGIN("003","苹果id登录"),
    ;

    private final String code;
    private final String message;

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    private UserEnum(final String code, final String message) {
        this.code = code;
        this.message = message;
    }

}
